<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="" style="position: absolute;width: 100%;">

			<form v-if="totalData.fChecktypenum=='0'">
				<fromItem title="取样类型" :data="totalData.fChecktype" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="材料进场编号" :data="totalData.fEntrynumber" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="取样编号" :data="totalData.fSamplenostr" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="样品种类" :data="totalData.fSampletypename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="样品名称" :data="totalData.fSamplename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="取样标段" :data="totalData.fBusinessscopename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem type="textarea" title="样品描述" :data="totalData.fSamplemessage" flex="right" nameColor="#989898"
					projectName="#343434" />

				<!-- <fromItem title="规格型号" :data="totalData.fSamplespecs" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="批号/编号" :data="totalData.fSampleno" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="试件类型" :data="totalData.fTesttype" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==1" title="强度等级" :data="totalData.fStrengthgrade" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==1" title="试件龄期(天)" :data="totalData.fSpecimenage" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==1" title="试件尺寸(mm)" :data="totalData.fSpecimensize" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==1" title="制件日期" :data="totalData.fProductiondate" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==2" title="牌号 " :data="totalData.fBrand" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==2" title="直径" :data="totalData.fDiameter" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==1||basic==2" title="试件编号" :data="totalData.fSampletestpiece" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem title="生产厂家" :data="totalData.fManufacturer" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="产地" flex="right" nameColor="#989898" projectName="#343434" :data="totalData.fPlace" />
				<fromItem title="取样地点" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fAddress" />
				<fromItem title="取样数量" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSamplenum" />
				<fromItem title="代表数量" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fDeputynum" /> -->

				<fromItem title="工程部位/用途" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fProjectlocation" />

				<!-- 动态显示 -->
				<fromItem
					v-if="formObjText_zj==1||formObjText_zj==2||formObjText_zj==3||formObjText_zj==4||formObjText_zj==5||formObjText_zj==7||formObjText_zj==10"
					title='取样地点' flex="right" nameColor="#989898" projectName="#343434" :data="totalData.fAddress" />
				<fromItem
					v-if="formObjText_zj==1||formObjText_zj==2||formObjText_zj==3||formObjText_zj==4||formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==9||formObjText_zj==10"
					title='代表数量' flex="right" nameColor="#989898" projectName="#343434" :data="totalData.fDeputynum" />

				<fromItem v-if="formObjText_zj==2||formObjText_zj==3" title="规格型号" flex="right" nameColor="#989898"
					projectName="#343434" :data="totalData.fSamplespecs" />
				<fromItem v-if="formObjText_zj==2||formObjText_zj==3" title="产地" flex="right" nameColor="#989898"
					projectName="#343434" :data="totalData.fPlace" />
				<fromItem
					v-if="formObjText_zj==4||formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==10"
					title="生产厂家" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fManufacturer" />
				<fromItem v-if="formObjText_zj==9" title="厂家(产地)" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fManufacturer" />
				<fromItem v-if="formObjText_zj==6" title="外加剂掺量" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSamplenum" />
				<fromItem
					v-if="formObjText_zj==4||formObjText_zj==8||formObjText_zj==13||formObjText_zj==7||formObjText_zj==11||formObjText_zj==12||formObjText_zj==14"
					:title="fStrengthgradeText" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fStrengthgrade" />
				<fromItem v-if="formObjText_zj==4||formObjText_zj==6||formObjText_zj==9||formObjText_zj==10"
					:title="fSamplenoText" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSampleno" />
				<fromItem v-if="formObjText_zj==10" title="钢筋直径" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fDiameter" />
				<fromItem
					v-if="formObjText_zj==9||formObjText_zj==13||formObjText_zj==14||formObjText_zj==16||formObjText_zj==10||formObjText_zj==11||formObjText_zj==12"
					:title='fTesttypeText' flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fTesttype" />
				<fromItem
					v-if="formObjText_zj==11||formObjText_zj==12||formObjText_zj==13||formObjText_zj==14||formObjText_zj==15"
					title='搅拌方式' flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fMixingmethod" />
				<fromItem v-if="formObjText_zj==12||formObjText_zj==14||formObjText_zj==15" title='养护条件' flex="right"
					nameColor="#989898" projectName="#343434" :data="totalData.fWarecondition" />
				<fromItem v-if="formObjText_zj==16" title='试验层位' flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fTestlayer" />
				<fromItem v-if="formObjText_zj==16" title='级配类型' flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fGradationtype" />
				<fromItem
					v-if="formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==9||formObjText_zj==12||formObjText_zj==14"
					:title='fProductiondatesText' flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fProductiondates" />
				<fromItem v-if="formObjText_zj==12||formObjText_zj==14" title='养护龄期' flex="right" nameColor="#989898"
					projectName="#343434" :data="totalData.fSpecimenage" />
				<fromItem v-if="formObjText_zj==12||formObjText_zj==14" title='试件尺寸' flex="right" nameColor="#989898"
					projectName="#343434" :data="totalData.fSpecimensize" />

<fromItem v-if="formObjText_zj==15" title='强度等级' flex="right" nameColor="#989898"
					projectName="#343434" :data="totalData.fStrengthgrade" />
				<!-- 连续扫描 -->

				<fromItem type="textarea" v-if="isScanCode" title="试件编号" :data="totalData.fSampletestpiece"
					nameColor="#989898" projectName="#343434"></fromItem>
				<fromItem title="进场日期" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fApproachdates" />
				<fromItem title="取样日期" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSampledates" />
				<fromItem title="取样人" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSampleperson" />
				<fromItem title="见证人" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fWitnessperson" />
				<fromItem type="textarea" title="备注" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fNote" />



				<fromItem type="photo" :num="8" title="取样现场照片" :data="fPhotofileList"></fromItem>

				<view class="grace-file-list" style="padding: 0;margin-bottom: 50upx">
					<view class="cu-bar bg-white">
						<view class="action" style="color: #989898;padding: 0 30upx;">
							取样现场视频
						</view>
						<view class="action">
							<image @tap.stop="changeContent" style="width: 30upx;height: 30upx;margin-bottom: 20upx;"
								:src="isSrc" mode=""></image>
						</view>
					</view>
					<view v-show="contentShow" class="items" style="background-color: #fff;"
						v-for="(item, index) in fastImgLists" :key="index">
						<view v-if="fastImgLists.length > 0" class="video-bg"
							style="position:relative;display: flex;justify-content: center;align-items: center;width: 80%;margin:auto;padding: 20upx 0;">
							<image v-show="fastImgLists[index].needload != 'true'" :src="item.src" :id="item.id"
								style="" @click="interVideo(item.filePath)"></image>
						</view>
					</view>
				</view>
				<!-- <fromItem title="经度" :data="totalData.fLon" nameColor="#989898" projectName="#343434"></fromItem>
				<fromItem title="纬度" :data="totalData.fLat" nameColor="#989898" projectName="#343434"></fromItem> -->


				<view class="cu-form-group">
					<map v-show="mapShow" style="width: 100%; height: 300px;z-index: 0;" :latitude="totalData.fLat"
						:longitude="totalData.fLon" :markers="markers">
					</map>
				</view>
			</form>

			<form v-if="totalData.fChecktypenum=='1'">
				<fromItem title="取样类型" :data="totalData.fChecktype" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="材料进场编号" :data="totalData.fEntrynumber" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="取样编号" :data="totalData.fSamplenostr" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="样品种类" :data="totalData.fSampletypename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="样品名称" :data="totalData.fSamplename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="规格型号" :data="totalData.fSamplespecs" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="取样标段" :data="totalData.fBusinessscopename" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="批号/编号" :data="totalData.fSampleno" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem type="textarea" title="样品描述" :data="totalData.fSamplemessage" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="生产厂家" :data="totalData.fManufacturer" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem title="产地" flex="right" nameColor="#989898" projectName="#343434" :data="totalData.fPlace" />
				<fromItem title="取样地点" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fAddress" />

				<!-- 
				<fromItem title="试件类型" :data="totalData.fTesttype" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==1" title="强度等级" :data="totalData.fStrengthgrade" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==1" title="试件龄期(天)" :data="totalData.fSpecimenage" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==1" title="试件尺寸(mm)" :data="totalData.fSpecimensize" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==1" title="制件日期" :data="totalData.fProductiondate" flex="right"
					nameColor="#989898" projectName="#343434" />
				<fromItem v-if="basic==2" title="牌号 " :data="totalData.fBrand" flex="right" nameColor="#989898"
					projectName="#343434" />
				<fromItem v-if="basic==2" title="直径" :data="totalData.fDiameter" flex="right" nameColor="#989898"
					projectName="#343434" />

				<fromItem v-if="basic==1||basic==2" title="试件编号" :data="totalData.fSampletestpiece" flex="right"
					nameColor="#989898" projectName="#343434" />
				-->

				<fromItem title="工程部位/用途" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fProjectlocation" />
				<fromItem title="取样数量" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSamplenum" />
				<fromItem title="代表数量" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fDeputynum" />
				<fromItem title="进场日期" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fApproachdates" />
				<fromItem title="取样日期" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSampledates" />
				<fromItem title="取样人" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fSampleperson" />
				<fromItem title="见证人" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fWitnessperson" />
				<fromItem type="textarea" title="备注" flex="right" nameColor="#989898" projectName="#343434"
					:data="totalData.fNote" />



				<fromItem type="photo" :num="8" title="取样现场照片" :data="fPhotofileList"></fromItem>

				<view class="grace-file-list" style="padding: 0;margin-bottom: 50upx">
					<view class="cu-bar bg-white">
						<view class="action" style="color: #989898;padding: 0 30upx;">
							取样现场视频
						</view>
						<view class="action">
							<image @tap.stop="changeContent" style="width: 30upx;height: 30upx;margin-bottom: 20upx;"
								:src="isSrc" mode=""></image>
						</view>
					</view>
					<view v-show="contentShow" class="items" style="background-color: #fff;"
						v-for="(item, index) in fastImgLists" :key="index">
						<view v-if="fastImgLists.length > 0" class="video-bg"
							style="position:relative;display: flex;justify-content: center;align-items: center;width: 80%;margin:auto;padding: 20upx 0;">
							<image v-show="fastImgLists[index].needload != 'true'" :src="item.src" :id="item.id"
								style="" @click="interVideo(item.filePath)"></image>
						</view>
					</view>
				</view>
				<!-- <fromItem title="经度" :data="totalData.fLon" nameColor="#989898" projectName="#343434"></fromItem>
				<fromItem title="纬度" :data="totalData.fLat" nameColor="#989898" projectName="#343434"></fromItem> -->


				<view class="cu-form-group">
					<map v-show="mapShow" style="width: 100%; height: 300px;z-index: 0;" :latitude="totalData.fLat"
						:longitude="totalData.fLon" :markers="markers">
					</map>
				</view>
			</form>

		</view>


	</view>
</template>
<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
